package com.wsc.wsckeeper.model.entity;

import java.util.Date;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import com.wsc.wsckeeper.model.entity.base.BaseEntityE;

@DatabaseTable(tableName = "account")
public class AccountE extends BaseEntityE {
	public static final String FIELD_LOGIN = "login";
	public static final String FIELD_PASSWORD = "password";
	public static final String FIELD_CREATED = "created";

	@DatabaseField(columnName = FIELD_LOGIN, dataType = DataType.STRING)
	private String login;

	@DatabaseField(columnName = FIELD_PASSWORD, dataType = DataType.STRING)
	private String password;

	@DatabaseField(columnName = FIELD_CREATED, dataType = DataType.DATE)
	private Date created;

	public AccountE() {
	}

	public AccountE(String description, String login, String password, Date created) {
		this.description = description;
		this.login = login;
		this.password = password;
		this.created = created;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

}
